namespace MapTeams.Umbraco.Polls.Dto
{
    /// <summary>
    /// Data structure to represent single poll choice.
    /// 
    /// UI templating logic can be added if necessary; for example if alt attribute and title is needed from UI, add the property here
    /// 
    /// Author: 
    /// Indra Kurniawan
    /// MAP Teams (http://www.mapits.com)
    /// </summary>
    public class MapTeamsPollsChoice
    {
        public int PollChoiceID { get; set; }
        public int PollID { get; set; }
        public string Choice { get; set; }
        public int VoteCount { get; set; }
        private decimal _percentage = 0; //default
        public decimal Percentage
        {
            get { return _percentage; }
            set { _percentage = value; }
        }
    }
}